package com.bmmtwabp.employeedashbord.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.*;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Description: websocket-配置类
 * @Param:
 * @return:
 * @Author: fenghouzhi
 * @Date: 9:38 AM 2018/10/23
 */
@Slf4j
@Configuration
@EnableWebSocket
public class WebSocketConfig {

  @Bean
  public ServerEndpointExporter serverEndpointExporter() {
    return new ServerEndpointExporter();
  }

}
